﻿@model NOSDC.Models.ArticleViewModel

@section Title
{
    @Model.Article.Title
}

@section MetaTags{ }

@section Right
{
    @{
        Html.RenderAction("GetUpcomingEvent", "Events");
    }
    @{Html.RenderAction("RecentJobs", "Jobs");}

}

<div class="news">
    <div class="newsPosting">
        <div>
            <div class="leftIcon">
            </div>
            <div class="titleWrapper">
                <div class="newsTitle">@Model.Article.Title</div>
                <div class="newsDate">
                    @Model.Article.DatePosted.ToString("MMMM d, yyyy")</div>
            </div>
        </div>
        <div class="rightIcon">
        </div>
    </div>
    <div class="newsBody">
        @Html.Raw(Model.Article.Story)
    </div>
    <div class="postedBy">
        Posted By: <a href="../Account/Register">@Membership.GetUser(Model.Article.PostedBy).UserName</a>
    </div>
</div>

@{Html.RenderAction("GetComments", "Comments", new {ArticleID = Model.Article.ArticleID});}

@section JavaScript{
    <script src="../../Scripts/comments.js" type="text/javascript"></script>
    <script type="text/javascript">
        $("#Home").addClass("selected");
    </script>
}